package com.zkkj.demo.enume;

import com.zkkj.demo.common.ICode;

/**
 * author : cyc
 * Date : 2019/12/25
 */
public enum RightEnum implements ICode {

    RES_SUCCESS(200, "操作成功");

    private final int code;

    private final String desc;

    RightEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
